Image processing device, image processing method and image processing computer program product

ABSTRACT

An image processing device, method and computer program product cooperate to make adjustments in detection area for image adjustment processing to when displacement adjustments have been made to a first or second imaging area. A detection area setting device sets a first detection area within a first imaging area and sets a second detection area in a second imaging area after a displacement adjustment is applied to at least one of the first imaging area and the second imaging area. The first detection area is an area used in image adjustment processing.

TECHNICAL FIELD

The present disclosure relates to an image processing device, an imageprocessing method and an image processing computer program product thatare suitably applied to a compound eye imaging device that capturesso-called stereoscopic images using, for example, two cameras.

BACKGROUND ART

In recent years, a method is proposed that obtains a stereoscopic effectusing stereoscopic viewing (stereovision) in which images of twoviewpoints, namely left and right (stereoscopic images) are seen,respectively, by the left and right eye.

As a method to generate image signals used in the stereoscopic viewing,compound eye imaging is known, in which two cameras are arranged on theleft and the right, and images of the two viewpoints are captured,respectively.

On the other hand, with respect to a normal imaging device using onecamera, a method is known in which a central portion of a screen basedon image signals is segmented in a rectangular shape as a detection area(detection frame) (refer to Patent Literature 1, for example). With thistype of imaging device, predetermined arithmetic processing is appliedto values of pixel signals included in the detection area, a signal forimage adjustment is thus generated for automatic focus etc. and theimage is actually adjusted based on that signal.

CITATION LIST Patent Literature

PTL 1: JP H11-98407A

SUMMARY Technical Problem

However, when performing compound eye imaging, it is conceivable thatdetection areas are set for each of images captured using two cameras,for example, signals for image adjustment are generated using the valuesof the pixel signals included in each of the detection areas, and eachof the images are then adjusted.

At this time, it is assumed that each of the detection areas is set tobe in a central section of each of the images. For example, when aspecific imaging target (subject) is positioned in the center of each ofthe images, each of the detection areas is set such that they are allmatched up with the subject.

Meanwhile, in a stereoscopic image, it is known to be possible to adjusta degree of the stereoscopic effect, which is obtained by adjustingareas of images that are mutually captured by two cameras, namely, byadjusting a degree of displacement between captured areas.

However, when the captured areas are displaced, the position of thedetection areas on the screen does not change from the central sectionof the screen, and thus the detection areas are displaced from thesubject. As a result, there is a risk that a focus cannot be aligned onthe subject.

In this type of compound eye imaging, when the captured area is changedin accordance with adjustment of the stereoscopic effect, there is aproblem that the image cannot be appropriately adjusted.

The present disclosure has been made in light of the above-describedproblems, and provides an image processing device, an image processingmethod and an image processing program that are capable of appropriatelyadjusting a plurality of respective images.

Solution to Problem

In one exemplary embodiment, an image processing device including adetection area setting device that sets a first detection area within afirst imaging area and sets a second detection area in a second imagingarea after a displacement adjustment is applied to at least one of thefirst imaging area and the second imaging area. The first detection areabeing an area used in image adjustment processing.

According to one aspect of the embodiment, the image processing device,further includes a displacement adjustment mechanism that compensatesfor optical mis-alignment between a first imaging unit and a secondimaging unit.

According to another aspect of the embodiment, the image processingdevice, further includes a zoom lens; and a lens control portion. Thedisplacement adjustment mechanism compensates for optical misalignmentcaused by zoom adjustment of the zoom lens.

According to another aspect of the embodiment, the image processingdevice, further includes a storage device. Adjustment amounts used bythe displacement adjustment mechanism to adjust for misalignment arepredetermined and stored in the storage device.

According to another aspect of the embodiment, the adjustment amountsare optical axis correction amounts, and the storage device stores theoptical axis correction amounts in an optical axis correction table.

According to another aspect of the embodiment, the image processingdevice, further includes the first imaging unit and the second imaginingunit, wherein the first imaging unit, the second imagining unit, and thedetection area setting device are part of a compound eye imaging device.

According to another aspect of the embodiment, the image adjustmentprocessing being one of focus control, exposure control and whitebalance control.

According to another aspect, the first detection area is positioned in acenter of the first imaging area, and the second detection area ispositioned in a center of the second imaging area.

According to another aspect, the detection area setting device sets athird imaging area and a forth imaging area, the third imaging areabeing an area created by moving the first imaging area in a horizontaldirection, and a fourth imaging area being an area created by moving thesecond imaging area in an opposite horizontal direction, an amount ofmovement for the first imaging area and the second imaging areacorresponding to a stereoscopic effect.

According to a method embodiment, the method includes applying adisplacement adjustment to at least one of a first imaging area and asecond imaging area, and setting with a detection area setting device, afirst detection area within the first imaging area, and a seconddetection area in the second imaging area. The first detection areabeing an area used in image adjustment processing.

One aspect of this embodiment is that it may include compensating foroptical mis-alignment between a first imaging unit and a second imagingunit with a displacement adjustment mechanism.

Another aspect is that it may include adjusting a zoom on a zoom lens.The compensating includes compensating for optical misalignment causedby the adjusting of the zoom.

Another aspect is that it may include storing in a storage deviceadjustment amounts used by the displacement adjustment mechanism toadjust for misalignment between the first imaging unit and the secondimagining unit.

Another aspect is that the adjustment amounts are optical axiscorrection amounts, and the storage device stores the optical axiscorrection amounts in an optical axis correction table.

Another aspect is that the image adjustment processing being one offocus control, exposure control and white balance control.

According to another aspect, the first detection area as positioned in acenter of the first imaging area, and the second detection area ispositioned in a center of the second imaging area.

According to another aspect, the setting includes setting a thirdimaging area and a forth imaging area, the third imaging area being anarea created by moving the first imaging area in a horizontal direction,and a fourth imaging area being an area created by moving the secondimaging area in an opposite horizontal direction, an amount of movementfor the first imaging area and the second imaging area corresponding toa stereoscopic effect.

In a non-transitory computer readable storage device embodiment that hasinstructions stored thereon that when executed by a processing circuitimplement an image processing method, the method includes applying adisplacement adjustment to at least one of a first imaging area and asecond imaging area; and setting with a detection area setting device afirst detection area within the first imaging area, and a seconddetection area in the second imaging area. The first detection areabeing an area used in image adjustment processing.

According to one aspect of the embodiment, the embodiment includescompensating for optical misalignment between a first imaging unit and asecond imaging unit with a displacement adjustment mechanism.

Another aspect is that it may include adjusting a zoom on a zoom lens.The compensating includes compensating for optical misalignment causedby the adjusting of the zoom.

Another aspect is that it may include storing in a storage deviceadjustment amounts used by the displacement adjustment mechanism toadjust for misalignment between the first imaging unit and the secondimagining unit.

Another aspect is that the adjustment amounts are optical axiscorrection amounts, and the storage device stores the optical axiscorrection amounts in an optical axis correction table.

Another aspect is that the image adjustment processing being one offocus control, exposure control and white balance control.

According to another aspect, the first detection area is positioned in acenter of the first imaging area, and the second detection area ispositioned in a center of the second imaging area.

According to another aspect, the setting includes setting a thirdimaging area and a forth imaging area, the third imaging area being anarea created by moving the first imaging area in a horizontal direction,and a fourth imaging area being an area created by moving the secondimaging area in an opposite horizontal direction, an amount of movementfor the first imaging area and the second imaging area corresponding toa stereoscopic effect.

ADVANTAGEOUS EFFECTS OF INVENTION

According to the present disclosure, it is possible to adjust each ofimages using an image signal that is extracted taking a first area asreference, irrespective of a degree of stereoscopic effect, because itis possible to set a second area in accordance with the stereoscopiceffect that is wished to be conveyed while also being possible to set adetection area based on the first area, without reference to the secondarea. Thus, the present disclosure can realize an image processingdevice, an image processing method and an image processing program thatare capable of appropriately adjusting a plurality of respective images.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a schematic diagram that shows an overall configuration of acompound eye imaging device.

FIG. 2 is a schematic diagram that shows a hardware configuration of asystem controller.

FIG. 3 is a schematic diagram that shows a functional configuration ofthe system controller and a digital signal processing portion.

FIG. 4 is a schematic diagram that shows extraction areas and detectionareas of images according to a first embodiment.

FIG. 5 is a schematic diagram that shows relationships between imagesand detection areas according to the first embodiment.

FIG. 6 is a flowchart that shows a right side detection area settingprocessing procedure according to the first embodiment.

FIG. 7 is a flowchart that shows a left side detection area settingprocessing procedure according to the first embodiment.

FIG. 8 is a schematic diagram that shows extraction areas and detectionareas of images according to a second embodiment.

FIG. 9 is a schematic diagram that shows relationships between imagesand detection areas according to the second embodiment.

FIG. 10 is a flowchart that shows a right side detection area settingprocessing procedure according to the second embodiment.

FIG. 11 is flowchart that shows a left side detection area settingprocessing procedure according to the second embodiment.

DESCRIPTION OF EMBODIMENTS

Hereinafter, preferred embodiments to practice the present disclosure(hereinafter referred to as embodiments) will be described withreference to the appended drawings. Note that the description will begiven in the order shown below.

1. First embodiment (example of setting detection area in accordancewith optical axis adjustment and parallax adjustment)

2. Second embodiment (example of setting detection area in accordancewith optical axis adjustment only)

3. Other embodiments

1. First Embodiment

1-1. Configuration of Compound-Eye Imaging Device

A compound-eye imaging device 1 shown in FIG. 1 generates image signalsof two systems that form a stereoscopic image, by performingcompound-eye imaging in which a specific imaging target is capturedwhile controlling two imaging units 3A and 3B using a control unit 2.

The control unit 2 has a system controller 5 that comprehensivelycontrols the whole, an operation portion 6 that receives operations froma user, and a display portion 7 that displays various pieces ofinformation.

As shown in FIG. 2, the system controller 5 is formed centrally of a CPU(Central

Processing Unit) 11, to which a ROM (Read Only Memory) 12, a RAM (RandomAccess Memory) 13 and a non-volatile memory 14 are connected via a bus15.

The CPU 11 reads out various programs from the ROM 12 and thenon-volatile memory 14, such as a specific basic program and a multipleimage adjustment control program, and executes these programs whileusing the RAM 13 as a working memory and so on.

It should be noted that the non-volatile memory 14 stores valuesrequired for image adjustment processing, such as focus control andexposure control for the imaging units 3A and 3B, respectively, andvarious values used in control of the imaging units 3A and 3B.

The CPU 11 transmits various control signals etc. to each portion of theimaging units 3A and 3B via a communication interface (I/F) 16, and alsoacquires various pieces of information from each of the portions of theimaging units 3A and 3B.

The operation portion 6 (FIG. 1) is formed of various operation buttonsor a touch panel, for example, and generates an operation signal inaccordance with content of a user operation and supplies the generatedoperation signal to the system controller 5. The operation portion 6 isprovided with, for example, an imaging button that starts or stopsimaging processing, cursor buttons that operate various menus, a zoomlever that adjusts a ratio of an image, and a parallax amount adjustmentdial that adjusts an amount of left and right parallax in order tochange a sense of depth during stereoscopic viewing.

The display portion 7 is formed of a liquid crystal panel, for example,and displays a display screen based on a display signal supplied fromthe system controller 5, thereby presenting to the user images capturedby the imaging units 3A and 3B and various pieces of information, suchas various setting contents etc.

Based on control of the control unit 2, the imaging unit 3A captures animaging target (not shown in the drawings) from a different viewpointthan the imaging unit 3B, and generates an image signal of one system.Note that the imaging unit 3A generates the image signal correspondingto the right eye.

Using an optical adjustment portion 20A, the imaging unit 3A opticallyadjusts imaging light obtained from the imaging target, and performsimage capture using an imaging element 24A. Specifically, the imagingunit 3A uses a zoom lens 21A to scale up the imaging light at a specificzoom ratio, reduces the amount of the imaging light using an aperture22A and adjusts a focus using a focus lens 23A.

At that time, the system controller 5 of the control unit 2 respectivelycontrols, via a lens driver 31A, a zoom ratio of the zoom lens 21A, anaperture amount of the aperture 22A and a focus position of the focuslens 23A. Further, the system controller 5 controls a shutter speed ofthe imaging element 24A, via a timing generator 32A.

The imaging element 24A is, for example, a CMOS (Complementary MetalOxide Semiconductor). Each pixel is provided with a color filter of acomplementary color system or a primary color system, and the imagingelement 24A generates an imaging signal in which each pixel is expressedby a color signal of a complementary color or a primary color. Inactuality, the imaging element 24A generates an analog image signal V1Aby performing photo-electric conversion on incident imaging light at aninterval based on control of the timing generator 32A. The analog imagesignal V1A is supplied to an analog signal processing portion 25A.

After performing correlated double sampling on the image signal V1A, theanalog signal processing portion 25A generates an image signal V2A byadjusting gain of the image signal V1A based on control of the systemcontroller 5, and supplies the image signal V2A to an A/D(Analog/Digital) converter 26A.

The A/D converter 26A generates a digital image signal V3A by performinganalog to digital conversion on the analog image signal V2A, andsupplies the digital image signal V3A to a digital signal processingportion 27A.

The digital signal processing portion 27A is formed, for example, of adigital signal processor, and performs a variety of image adjustmentprocessing on the image signal V3A based on the control of the systemcontroller 5. The image adjustment processing that is performed here is,for example, white balance correction processing or gamma correctionprocessing etc., and includes a variety of processing on the imagesignal after image capture.

In addition, the digital signal processing portion 27A extracts, fromthe image signal V3A, an image that is an area to be extracted as afinal image (hereinafter referred to as an extraction area), generatesthis as an image signal V4A, and supplies the image signal V4A to amemory 8.

After temporarily storing the image signal V4A, the memory 8 suppliesthe image signal V4A to a storage portion 9. The storage portion 9 is,for example, an optical disk drive or a magnetic disk drive, or a flashmemory or the like, and stores the image signals V4A that aresequentially supplied. Further, in accordance with a request from thesystem controller 5, the storage portion 9 reads out the stored imagesignal V4A and supplies it to the memory 8.

In addition, based on pixel values inside a specified area of the imageexpressed by the image signal V3A, the digital signal processing portion27A generates a plurality of types of detection values that are usedwhen adjusting the image signal V3A, and supplies the detection valuesto the system controller 5 (this will be explained in more detaillater).

Based on these detection values, the system controller 5 performsvarious controls, such as zoom control, aperture control, focus controland shutter speed control etc., via the lens driver 31A and the timinggenerator 32A.

In this way, based on the control of the control unit 2, the imagingunit 3A captures the imaging target in the same manner as a generalvideo camera or the like and generates the image signal V4A.Hereinafter, processing that generates the image signal V4A of theimaging target by the imaging unit 3A based on the control of thecontrol unit 2 will also be referred to as single-eye imagingprocessing.

Meanwhile, the imaging unit 3B is formed in a similar manner to theimaging unit 3A, and captures the imaging target, based on the controlof the control unit 2, from a slightly different position and directionthan that of the imaging unit 3A. Thus, the imaging unit 3B generates animage signal V4B that corresponds to the image signal V4A. Note that theimaging unit 3B generates an image signal corresponding to the left eye.

At this time, by linking various controls of the imaging units 3A and3B, such as the zoom control, the aperture control, the focus controland the shutter speed control, the control unit 2 performs compound-eyeimaging control that comprehensively controls various adjustment valuesrelating to the image signals V4A and V4B, such as focus position andexposure etc.

Thus, the image signals V4A and V4B generated by the imaging units 3Aand 3B respectively form an image for the right eye and an image for theleft eye that express a stereoscopic image.

Using the control unit 2 in this way, the compound-eye imaging device 1controls the imaging units 3A and 3B in a linked manner, and performscompound-eye imaging processing, thus generating, respectively, theimage signals V4A and V4B that express the stereoscopic image.

It should be noted that, in a manufacturing adjustment process etc. ofthe imaging units 3A and 3B, although optical axes of the opticaladjustment portion 20A and an optical adjustment portion 20B arerespectively adjusted such that imaging regions of the imaging element24A and an imaging element 24B are mutually aligned, there are cases inwhich an adjustment error occurs.

When there is such an adjustment error, due to misalignment between theoptical adjustment portions 20A and 20B, displacement between therespective imaging regions occurs in the imaging units 3A and 3B. Whenthe zoom ratio of the zoom lens 21A and a zoom lens 21B is raised,namely when a high zoom ratio is set using the zoom lever of theoperation portion 6, this type of displacement between the imagingregions appears even more clearly.

However, the displacement of the imaging regions can be substantiallyresolved by processing (hereinafter referred to as optical axiscorrection processing), in which extraction areas from the image signalV3A and an image signal V3B are each moved and the imaging regions ofthe final image signals V4A and V4B are roughly aligned with each other.

Here, in the manufacturing adjustment process of the compound-eyeimaging device 1, a relationship between a set zoom ratio and anappropriate amount of movement of the extraction area (hereinafterreferred to as an optical axis correction amount) is measured, and anoptical axis correction table is generated that represents therelationship between the zoom ratio and the optical axis correctionamount Then, the optical axis correction table is stored in thenon-volatile memory 14 (FIG. 2) of the system controller 5.

1-2. Image Adjustment Processing

Next, adjustment processing of images expressed by the image signals V3Aand V3B, which is performed by the system controller 5 of the controlunit 2 and by the digital signal processing portion 27A and a digitalsignal processing portion 27B of the imaging units 3A and 3B, will beexplained.

By executing specific imaging processing programs, the system controller5 executes various functions internally, as shown in FIG. 3, forexample. Further, the digital signal processing portions 27A and 27B areprogrammed in advance, and thus they are set to realize variousfunctions shown in FIG. 3.

First, the system controller 5 respectively sets extraction areas of theimage signals V3A and V3B, using an extraction/scaling control portion40. Specifically, as the optical axis correction processing, opticalaxis correction control portions 41A and 41B of the extraction/scalingcontrol portion 40 read out the optical axis correction table from thenon-volatile memory 14, determine the optical axis correction amountaccording to the zoom ratio at that time, and set extraction areas TA1and TB1 as first areas.

Here, as shown in FIG. 4 (A), original images MA and MB, which are wholeareas of the images expressed by the image signals V3A and V3B, areschematically depicted as imaging targets JA and JB that correspond toeach other.

In FIG. 4 (A), a relative position of the imaging target JA with respectto the original image MA, and a relative position of the imaging targetJB with respect to the original image MB are mutually different.Meanwhile, the relative position of the imaging target JA with respectto the extraction area TA1 and the relative position of the imagingtarget JB with respect to the extraction area TB1 are both substantiallycentral and match each other.

Next, based on the extraction area set by the optical axis correctionprocessing, a parallax amount control portion 42 of theextraction/scaling control portion 40 once more sets an extraction area,so as to adjust a sense of depth during stereoscopic viewing of theimage signals V4A and V4B. Hereinafter, this type of processing is alsoreferred to as parallax amount adjustment processing.

More specifically, as shown in FIG. 4 (B) and FIG. 4 (C) that correspondto FIG. 4 (A), the parallax amount control portion 42 sets, as secondareas, for example, extraction areas TA2 and TB2, in positions to whichthe extraction areas TA1 and TB1 have been respectively moved in theleft-right direction in accordance with a parallax amount instructed bythe parallax amount adjustment dial of the operation portion 6.

It should be noted that FIG. 4 (B) shows a case in which the imagingtarget is positioned further to the front than the display screen andFIG. 4 (C) shows a case in which the imaging target is positionedfurther to the rear than the display screen.

After that, an extraction area signal generation portion 43A of theextraction/scaling control portion 40 generates extraction area signalsSTA2 and STB2 that express the position and size etc. of the extractionareas TA2 and TB2. Then, the extraction area signal generation portion43A supplies the extraction area signals STA2 and STB2 to detection areacontrol portions 44A and 44B and to extraction/scaling portions 55A and55B of the digital signal processing portions 27A and 27B, respectively.

In accordance with the supplied extraction area signal STA2, thedetection area control portion 44A sets a rectangular detection area DA2that has a predetermined size (FIG. 4 (B) and FIG. 4 (C)), in a positionthat is roughly at the center of the extraction area TA2.

The detection area DA2 represents an area, of the extraction area TA2that is finally extracted, for which a degree of focusing and exposureshould be optimally adjusted by focus control and exposure control. Thedetection area DA2 is also called a detection frame.

Further, the detection area DA2 is set in a position corresponding tothe extraction area TA2 after the parallax amount adjustment processing.In other words, the detection area DA2 is set in a position that isdifferent to the detection area DA1 which is assumed to be setcorresponding to the extraction area TA1 before the parallax amountadjustment processing.

In a similar manner, the detection area control portion 44B sets adetection area DB2 roughly in the center of the extraction area TB2, inaccordance with the supplied extraction area signal STB2.

Then, the detection area control portions 44A and 44B (FIG. 3) generatedetection area signals SDA and SDB that express the position and sizeetc. of the detection areas DA2 and DB2, and supply the detection areasignals SDA and SDB to detection portions 52A and 52B of the digitalsignal processing portions 27A and 27B, respectively.

On the other hand, the digital signal processing portion 27A amplifiesthe image signal V3A supplied from the A/D converter 26A (FIG. 1) usingan amplifier 51A, and supplies the amplified image signal V3A to thedetection portion 52A and a white balance adjustment portion 53A.

The detection portion 52A includes a sharpness detection portion 52A1, aluminance detection portion 52A2 and a color signal detection portion52A3, and generates a plurality of various detection values, based onpixel values inside the detection area DA that is specified by thedetection area signal SDA of the image signal V3A.

More specifically, by performing arithmetic processing, such asdifferentiation etc., on the pixel values of the pixels included in thedetection area DA2 of the image signal V3A, the sharpness detectionportion 52A1 generates a sharpness signal SSA, which expressessharpness. The sharpness detection portion 52A1 supplies the sharpnesssignal SSA to a lens control portion 45.

Based on the sharpness signal SSA, the lens control portion 45 controlsa position of the focus lens 23A, via the lens driver 31A, such that thesharpness of the section corresponding to the detection area DA2 of theimage signal V3A is highest, namely, such that that section comes intofocus.

The luminance detection portion 52A2 generates a luminance signal SBA byperforming arithmetic processing, such as integration etc., with respectto luminance values of pixels included in the detection area DA2 of theimage signal V3A. The luminance detection portion 52A2 supplies thegenerated luminance signal SBA to an exposure control portion 46.

Based on the luminance signal SBA, the exposure control portion 46controls the aperture 22A, via the lens driver 31A, such that anexposure value of the section corresponding to the detection area DA2 ofthe image signal V3A is an optimal value. In addition, the exposurecontrol portion 46 controls, via the timing generator 32A, the shutterspeed of the imaging element 24A, and further controls an amplificationgain of an amplifier 51A.

A color signal detection portion 52A3 generates a color signal SCA byperforming specific arithmetic processing on pixel values of pixelsincluded in the detection area DA2 of the image signal V3A, and suppliesthe color signal SCA to a white balance control portion 47.

Based on the color signal SCA, the white balance control portion 47generates a white balance adjustment signal SWA, and supplies the whitebalance adjustment signal SWA to the white balance adjustment portion53A. Based on the white balance adjustment signal SWA, the white balanceadjustment portion 53A adjusts the white balance of the image signalV3A, and supplies the adjusted image signal V3A to a gamma correctionportion 54A.

The gamma correction portion 54A performs specific gamma correctionprocessing on the image signal V3A, and supplies the processed imagesignal V3A to the extraction/scaling portion 55A. The extraction/scalingportion 55A generates the image signal V4A by extracting an areaindicated by the extraction area signal STA2 of the image signal V3A,and supplies the image signal V4A to a memory 7.

Meanwhile, in correspondence to the digital signal processing portion27A, the digital signal processing portion 27B generates a sharpnesssignal SSB, a luminance signal SBB and a color signal SCB, respectively,by a sharpness detection portion 52B1, a luminance detection portion52B2 and a color signal detection portion 52B3 of the detection portion52B.

Based on the sharpness signal SSB, the lens control portion 45 controlsa position of a focus lens 23B, via a lens driver 31B, such that thesharpness of the section corresponding to the detection area DB2 of theimage signal V3B is highest, namely, such that that section comes intofocus.

At that time, the lens control portion 45 corrects a control signal thatis supplied to the lens driver 31B for the left side, based on thesharpness signal SSA for the right side. The lens control portion 45also corrects a control signal that is supplied to the lens driver 31Afor the right side, based on the sharpness signal SSB for the left side.

Based on the luminance signal SBB, the exposure control portion 46controls an aperture amount of an aperture 22B, via the lens driver 31B,such that an exposure value of the section corresponding to thedetection area DB2 of the image signal V3B is an optimal value. Inaddition, the exposure control portion 46 controls, via a timinggenerator 32B, the shutter speed of the imaging element 24B, and furthercontrols an amplification gain of an amplifier 51B.

At that time, similarly to the lens control portion 45, the exposurecontrol portion 46 corrects control signals that are respectivelysupplied to the lens driver 31B, the timing generator 32B and to theamplifier 51B for the left side, based on the luminance signal SBA forthe right side. In addition, the exposure control portion 46 alsocorrects control signals that are respectively supplied to the lensdriver 31A, the timing generator 32A and the amplifier 51 A for theright side, based on the luminance signal SBB for the left side.

Based on the color signal SCB, the white balance control portion 47generates a white balance adjustment signal SWB, and supplies the whitebalance adjustment signal SWB to a white balance adjustment portion 53B.

At that time, the white balance control portion 47 corrects the whitebalance adjustment signal SWB that is supplied to the white balanceadjustment portion 53B for the left side, based on the color signal SCAfor the right side. In addition, the white balance control portion 47also corrects the white balance adjustment signal SWA that is suppliedto the white balance adjustment portion 53A for the right side, based onthe color signal SCB for the left side.

The digital signal processing portion 27B amplifies the image signal V3Busing the amplifier 51B, adjusts the white balance using the whitebalance adjustment portion 53B, and applies gamma correction processingby the gamma correction portion 54B and then supplies the image signalV3B to the extraction/scaling portion 55B. The extraction/scalingportion 55B generates the image signal V4B by extracting an areaindicated by the extraction area signal STB2 of the image signal V3B,and supplies the image signal V4B to the memory 7.

In other words, with respect to each of the image signals V3A and V3Bobtained by image capture, the imaging units 3A and 3B (FIG. 1) performfocus control, exposure control and white balance control, while placingimportance on detection values of each of the detection areas DA2 andDB2 and also taking into consideration the detection values of the imagesignal on the other side.

In this way, in the compound-eye imaging device 1, the extraction areasTA2 and TB2 are set by the optical axis correction processing and by theparallax amount adjustment processing and, at the same time, thedetection areas DA2 and DB2 are set. Then, various detection values,such as sharpness etc. are generated from the pixel values etc. withinthe detection areas DA2 and DB2. Then, based on the various generateddetection values, the compound-eye imaging device 1 performs processingthat adjusts the image, such as focus control and exposure control etc.(hereinafter referred to collectively as imaging adjustment processing),and thus the compound-eye imaging device 1 generates the image signalsV4A and V4B that express the stereoscopic image.

1-3. Relationship Between Imaging Target and Position of Detection Areas

Here, a relationship will be explained between a stereoscopic effectthat is obtained when a viewer stereoscopically views an image of theimage signals V4A and V4B using a television device or the like, and aposition of the detection areas.

Generally, when stereoscopically viewing images using a televisiondevice, the image signals V4A and V4B are alternately displayed on thetelevision device one frame or one field at a time. The viewer puts onglasses, and left and right lenses of the glasses are alternatelyblocked in synchronization with the images, by liquid crystal shuttersor the like.

By doing this, within a front display screen, the viewer sees only theimage based on the image signal V4A with his/her right eye and, at thesame time, sees only the image based on the image signal V4B withhis/her left eye.

FIG. 5 (A) to FIG. 5 (C) schematically show this state, and imagesdisplayed on display screens are shown in an upper section andpositional relationships between the viewer's eyes, the display screensand obtained images are shown in a lower section respectively along withdetection areas. The extraction areas TA1 and TB1, or the extractionareas TA2 and TB2 are displayed on the whole of the display screen.

FIG. 5 (A) corresponds to FIG. 4 (A) and shows positional relationshipsbetween viewpoints VA and VB of the viewer, the extraction areas TA1 andTB1 when only the optical axis correction processing has been performed,the imaging targets JA and JB, and the detection areas DA1 and DB1. Inthis case, the detection areas DA1 and DB1 are aligned with each otheron the display screen.

FIG. 5 (B) corresponds to FIG. 4 (B) and shows a case in which, inaddition to the optical axis correction processing, the parallax amountadjustment processing has been performed such that the image appears tobe positioned to the front. In this case, the imaging targets JA and JBare displaced to the left and the right on the display screen, and thusthe viewer subconsciously tries to overlap the imaging targets JA and JBin his/her brain, and a stereoscopic effect can thus be obtained inwhich the image is to the front.

Here, as the detection areas DA2 and DB2 are matched to the imagingtargets JA and JB, respectively, the image signals V4A and V4B areadjusted such that the focus and the exposure etc. are matched with theimaging targets in each of the left and right images. For that reason,the imaging targets appear vividly to the viewer and the viewer canenjoy images that have a sense of depth.

FIG. 5 (C) corresponds to FIG. 4 (C) and shows a case in which, inaddition to the optical axis correction processing, the parallax amountadjustment processing is performed such that the image appears to bepositioned to the rear. In this case, the imaging targets are displacedto the left and to the right in opposite directions to those of FIG. 5(B) and therefore, a stereoscopic effect can be imparted to the viewerin which the image is to the rear. In this case, the imaging targetsappear vividly to the viewer and the viewer can perceive images thathave a sense of depth.

1-4. Detection Area Setting Processing Procedure

Next, detection area setting processing procedures RT1 and RT2, whichare used in the compound-eye imaging device 1 when respectively settingthe right side and left side detection areas DA2 and DB2, will beexplained with reference to flowcharts shown in FIG. 6 and FIG. 7. Itshould be noted that either the right side detection area settingprocessing procedure RT1 or the left side detection area settingprocessing procedure RT2 may be processed first, or parallel processingmay be performed.

Furthermore, for explanatory purposes, coordinates within the screentake the top left of the screen as an origin point, an x axis is set isa direction from the left toward the right and a y axis is set in adirection from the top toward the bottom. In addition, the extractionareas TA and the detection areas DA are expressed by coordinates oftheir top left and bottom right vertices.

When the imaging processing is started, the CPU 11 of the systemcontroller 5 starts the right side detection area setting processingprocedure RT1 (FIG. 6) and moves to step SP1.

At step SP1, the CPU 11 reads out the optical axis correction table fromthe non-volatile memory 14 using the optical axis correction controlportion 41A, and determines the right side optical axis correctionamount in accordance with the zoom ratio at this time. Then, the CPU 11determines coordinates (TA1Lx, TA1Ly) expressing the upper left vertexbased on the optical axis correction amount, and moves to the next stepSP2.

At step SP2, the CPU 11 calculates coordinates (TA1Rx, TA1Ry) expressingthe lower right vertex in accordance with a specific arithmeticexpression that is based on the coordinates (TA1Lx, TA1Ly) expressingthe upper left vertex of the extraction area TA1 and on the zoom ratioset by the zoom lever of the operation portion 6, and then moves to thenext step SP3.

At step SP3, the CPU 11 sets the extraction area TA1 with thecoordinates (TA1Lx, TA1Ly) and the coordinates (TA1Rx, TA1Ry) as theupper left vertex and the lower right vertex, respectively, and moves tothe next step SP4.

At step SP4, using the parallax amount control portion 42, the CPU 11calculates, using the following Formula (1), coordinates (TA2Lx, TA2Ly)expressing the upper left vertex of the extraction area TA2, based onthe upper left vertex (TA1Lx, TA1Ly) of the set extraction area TA1 andon an adjustment amount S that is set in accordance with the parallaxamount, and then moves to the next step SP5.

TA2Lx=TA1Lx+S

TA2Ly=TA1Ly   (1)

At step SP5, the CPU 11 calculates coordinates (TA2Rx, TA2Ry) expressingthe lower right vertex in accordance with a specific arithmeticexpression that is based on the coordinates (TA2Lx, TA2Ly) expressingthe upper left vertex of the extraction area TA2 and on the zoom ratioset using the zoom lever of the operation portion 6, and then moves tothe next step SP6.

At step SP6, the CPU 11 sets the extraction area TA2 with thecoordinates (TA2Lx, TA2Ly) and the coordinates (TA2Rx, TA2Ry) as theupper left vertex and the lower right vertex, respectively, and moves tothe next step SP7.

At step SP7, using the detection area control portion 44A, the CPU 11calculates, using the following Formula (2), coordinates (DA2Lx, DA2Ly)expressing the upper left vertex of the detection area DA2, based on theupper left vertex (TA2Lx, TA2Ly) of the extraction area TA2 and on aconstant (Cx, Cy), and then moves to the next step SP8. Here, theconstant (Cx, Cy) is a value that is established based on a differencebetween the sizes of the extraction area TA2 and the detection area DA2.

DA2Lx=TA2Lx+Cx

DA2Ly=TA2Ly+Cy   (2)

At step SP8, the CPU 11 calculates coordinates (DA2Rx, DA2Ry) expressingthe lower right vertex in accordance with a specific arithmeticexpression that is based on the coordinates (DA2Lx, DA2Ly) expressingthe upper left vertex of the detection area DA2, and then moves to thenext step SP9.

At step SP9, the CPU 11 sets the detection area DA2 with the coordinates(DA2Lx, DA2Ly) and the coordinates (DA2Rx, DA2Ry) as the upper leftvertex and the lower right vertex, respectively, and moves to the nextstep SP10.

At step SP10, the CPU 11 generates detection area information SDA thatrepresents the set detection area DA2, and supplies the detection areainformation SDA to the detection portion 52A. The CPU 11 then moves tothe next step SP11, and ends the right side detection area settingprocessing procedure RT1.

Further, when the imaging processing is started, the CPU 11 of thesystem controller 5 starts the left side detection area settingprocessing procedure RT2 (FIG. 7) and moves to step SP21.

At step SP21, similarly to the right side, the CPU 11 reads out theoptical axis correction table from the non-volatile memory 14 using theoptical axis correction control portion 41B, and determines the leftside optical axis correction amount in accordance with the zoom ratio atthis time. Then, the CPU 11 determines coordinates (TB1Lx, TB1Ly)expressing the upper left vertex based on the optical axis correctionamount, and moves to the next step SP22.

At step SP22 and step SP23, similarly to the case of the right side, theCPU 11 sets the extraction area TB 1 after calculating coordinates (TB1Rx, TB1Ry) expressing the lower right vertex, and then moves to thenext step SP24.

At step SP24, using the parallax amount control portion 42, the CPU 11calculates, using the following Formula (3) in which some of thenumerals are reversed from those for the right side, coordinates (TB2Lx,TB2Ly) expressing the upper left vertex of the extraction area TB2,based on the upper left vertex (TB1Lx, TB1Ly) of the set extraction areaTB1 and on the adjustment amount S, and then moves to the next stepSP25.

TB2Lx=TB1Lx−S

TB2Ly=TB1Ly   (3)

At step SP25 and step SP26, similarly to the case of the right side, theCPU 11 sets the extraction area TB2 after calculating coordinates(TB2Rx, TB2Ry) expressing the lower right vertex, and then moves to thenext step SP27.

At step SP27, similarly to the case of the right side, using thedetection area control portion 44B, the CPU 11 calculates, using thefollowing Formula (4), coordinates (DB2Lx, DB2Ly) expressing the upperleft vertex of the detection area DB2, based on the upper left vertex(TB2Lx, TB2Ly) of the extraction area TB2 and on the constant (Cx, Cy),and then moves to the next step SP28.

DB2Lx=TB2Lx+Cx

DB2Ly=TB2Ly+Cy   (4)

At step SP28 and step SP29, similarly to the case of the right side, theCPU 11 sets the extraction area DB2 after calculating coordinates(DB2Rx, DB2Ry) expressing the lower right vertex, and then moves to thenext step SP30.

At step S30, the CPU 11 generates detection area information SDB thatrepresents the set detection area DB2, and supplies the detection areainformation SDB to the detection portion 52B. The CPU 11 then moves tothe next step SP31, and ends the left side detection area settingprocessing procedure RT2.

1-5. Operations and Effects

With the above-described configuration, the compound-eye imaging device1 according to the first embodiment respectively sets the extractionareas TA1 and TB1 in the image signals V3A and V3B using the opticalaxis correction control portions 41A and 41B and by the optical axiscorrection processing in accordance with the zoom ratio at this time.

The parallax amount control portion 42 respectively sets the extractionareas TA2 and TB2 such that the extraction areas TA1 and TB1 aredisplaced in the left-right direction by the parallax amount adjustmentprocessing in accordance with the stereoscopic effect that is wished tobe imparted to the viewer.

The detection area control portions 44A and 44B respectively set thedetection areas DA2 and DB2 such that the detection areas DA2 and DB2are positioned substantially in the center of the extraction areas TA2and TB2.

Then, after the detection portions 52A and 52B have generated thevarious detection values, such as sharpness etc., based on the pixelvalues inside the detection areas DA2 and DB2, the digital signalprocessing portions 27A and 27B perform the image adjustment processing,such as focus control, exposure control and the like.

As a result, the compound-eye imaging device 1 can position the imagingtargets JA and JB in mutually corresponding positions in the imagesignals V4A and V4B, and can also optimize the focus and exposure foreach of the imaging targets JA and JB. Thus, the stereoscopic image ofthe imaging targets can be vividly captured.

With the image signals V4A and V4B generated in this manner, it ispossible to show a viewer who has seen the image of the image signalsV4A and V4B via a specific display device, the vivid imaging targets forthe right eye and the left eye, respectively. As a result, it ispossible to impart an appropriate sense of depth with respect to theimaging targets.

In particular, the compound-eye imaging device 1 sets the detectionareas DA2 and DB2 for the image signals V3A and V3B, respectively, andperforms the image adjustment processing for each of the images whileplacing importance on each of the detection values generated from thepixel values inside the detection areas DA2 and DB2, respectively, whilealso taking other detection values into consideration.

As a result, the compound-eye imaging device 1 can capture therespective imaging targets extremely vividly, by respectively performingthe image adjustment processing with respect to each of the left andright image signals, based on the detection values obtained from thepixel values within the detection areas of each of the image signals.

In addition, the compound-eye imaging device 1 can enhance the mutualcorrelativity of each of the left and right image signals by correctingeach of the adjustment values etc. based on the detection valuesobtained from the image signal on the other side and can thus reduce asense of discomfort arising from differences between the left and rightimages.

With the above-described configuration, the compound-eye imaging device1 respectively sets the extraction areas TA1 and TB1 in the imagesignals V3A and V3B by the optical axis correction processing inaccordance with the zoom ratio at this time, and further respectivelysets the extraction areas TA2 and TB2 by the parallax amount adjustmentprocessing in accordance with the stereoscopic effect that is wished tobe imparted to the viewer. Then, the compound-eye imaging device 1respectively sets the detection areas DA2 and DB2 in positions that aresubstantially in the center of the extraction areas TA2 and TB2, and,after the various detection values have been generated based on thepixel values within the detection areas DA2 and DB2, the compound-eyeimaging device 1 performs the image adjustment processing, such as focuscontrol, exposure control and the like. As a result, the compound-eyeimaging device 1 can position the imaging targets JA and JB in mutuallycorresponding positions in the image signals V4A and V4B, and canrespectively optimally control the focus and exposure in alignment withthe imaging targets JA and JB. The compound-eye imaging device 1 canthus adjust for the vivid stereoscopic image.

2. Second Embodiment

2-1. Configuration of Compound-Eye Imaging Device

In comparison to the compound-eye imaging device 1 according to thefirst embodiment, a compound-eye imaging device 71 (FIG. 1) according toa second embodiment differs in that it has a system controller 75 inplace of the system controller 5, while having a similar configurationin all other respects.

In comparison to the system controller 5, the system controller 75 (FIG.3) differs in that it has an extraction/scaling control portion 80 anddetection area control portions 84A and 84B in place of theextraction/scaling control portion 40 and the detection area controlportions 44A and 44B.

The extraction/scaling control portion 80 has extraction area signalgeneration portions 83A and 83B in place of the extraction area signalgeneration portions 43A and 43B.

2-2. Detection Area Setting

As shown in FIG. 8 (A), which corresponds to FIG. 4 (A), similarly tothe case of the extraction/scaling control portion 40, the optical axiscorrection control portions 41A and 41B of the extraction/scalingcontrol portion 80 read out the optical axis correction table from thenon-volatile memory 14, determine the optical axis correction amountaccording to the zoom ratio at that time, and set the extraction areasTA1 and TB1.

Further, as shown in FIG. 8 (B) and FIG. 8 (C) which correspond to FIG.4 (B) and FIG. 4 (C), the parallax amount control portion 42 sets thefinal extraction areas TA2 and TB2, in positions to which the extractionareas TA1 and TB1 have been respectively moved in the left-rightdirection.

The extraction area signal generation portions 83A and 83B supply theextraction area signals STA2 and STB2, which express the position andsize etc. of the extraction areas TA2 and TB2, to the extraction/scalingportions 55A and 55B of the digital signal processing portions 27A and27B, respectively.

In addition, in contrast to the extraction area signal generationportions 43A and 43B, the extraction area signal generation portions 83Aand 83B generate extraction area signals STA1 and STB1 that express theposition and size of the extraction areas TA1 and TB 1 before beingre-set, and supply the extraction area signals STA1 and STB1 to thedetection area control portions 84A and 84B.

In accordance with the supplied extraction area signal STA1, thedetection area control portions 84A and 84B set the detection areas DA1and DB1 (FIG. 8 (B) and FIG. 8 (C)) in positions that are substantiallyin the center of the extraction areas TA1 and TB1 before being re-set.

Then, the detection area control portions 84A and 84B (FIG. 3) generatethe detection area signals SDA and SDB, which express the position andsize etc. of the detection areas DA1 and DB1, and supply the detectionarea signals SDA and SDB to the detection portions 52A and 52B of thedigital signal processing portions 27A and 27B, respectively.

Based on pixel values of pixels included within the detection areas DA1and DB1 of the image signals V3A and V3B, the detection portions 52A and52B generate various signals, such as a sharpness signal that expressessharpness etc., and supply the various signals to the lens controlportion 45, the exposure control portion 46 and the white balancecontrol portion 47, respectively.

In response to this, based on the various signals generated from thepixel values of each of the detection areas DA1 and DB1, the lenscontrol portion 45, the exposure control portion 46 and the whitebalance control portion 47 perform focus control, exposure control andwhite balance control.

In this way, the compound-eye imaging device 71 sets the detection areasDA1 and DB1 based on the extraction areas TA1 and TB1 that are set bythe optical axis correction processing, namely, based on the extractionareas TA1 and TB1 before being re-set by the parallax amount adjustmentprocessing, and generates the various detection values, such assharpness etc., from the pixel values etc. within the detection areasDA1 and DB1. Then, by performing the image adjustment processing basedon the various generated detection values, the compound-eye imagingdevice 71 generates the image signals V4A and V4B that express thestereoscopic image.

2-3. Relationship Between Imaging Target and Position of Detection Areas

Here, a relationship will be explained between a stereoscopic effectthat is obtained when a viewer stereoscopically views an image of theimage signals V4A and V4B using a television device or the like, and aposition of the detection areas.

Similarly to FIG. 5 (A) to FIG. 5 (C), FIG. 9 (A) to FIG. 9 (C)schematically show a state in which the viewer sees only the image basedon the image signal V4A with his/her right eye and, at the same time,sees only the image based on the image signal V4B with his/her left eye.

FIG. 9 (A) corresponds to FIG. 8 (A) and shows positional relationshipsbetween viewpoints VA and VB of the viewer, the extraction areas TA1 andTB1 when only the optical axis correction processing has been performed,the imaging targets JA and JB, and the detection areas DA1 and DB1. Inthis case, the detection areas DA1 and DB1 are aligned with each otheron the display screen, similarly to FIG. 5 (A).

FIG. 9 (B) corresponds to FIG. 8 (B) and shows a case in which, inaddition to the optical axis correction processing, the parallax amountadjustment processing has been performed such that the image appears tobe positioned to the front, similarly to FIG. 5 (B). In this case, theimaging targets JA and JB are displaced to the left and the right on thedisplay screen, and thus the viewer subconsciously tries to overlap theimaging targets JA and JB in his/her brain, and a stereoscopic effectcan thus be obtained in which the image is to the front.

Here, in FIG. 9 (B), the detection areas DA1 and DB1 are aligned at aposition in which the image appears to the front. This is because thedetection areas DA1 and DB1 are set in the center of the extractionareas TA1 and TB1 after the optical axis correction processing. In otherwords, because the detection areas DA1 and DB1 are set to be mutuallysubstantially in the center with respect to the imaging targets JA andJB, when the imaging targets JA and JB are aligned, the detection areasDA1 and DB1 are also aligned.

Thus, the alignment of the imaging targets JA and JB at the same time asthe alignment of the detection areas DA1 and DB1 at a position in whichthe image appears to the front means that areas of the imaging targetsJA and JB that are used as a reference for focus control and exposurecontrol are also mutually aligned.

Specifically, with the image signals V4A and V4B generated according tothe second embodiment, optimal image adjustment processing is performedon each of the imaging targets JA and JB, and thus it is possible tocause the viewer who is stereoscopically viewing those images tostereoscopically view the image of the extremely vivid imaging targets.

FIG. 9 (C) corresponds to FIG. 8 (C), and shows a case in which, inaddition to the optical axis correction processing, the parallax amountadjustment processing is performed such that the image appears to bepositioned to the rear, similarly to FIG. 5 (C). In this case, theimaging targets are displaced to the left and to the right in oppositedirections to those of FIG. 9 (B) and a stereoscopic effect can beimparted to the viewer in which the image is to the rear. In this case,the imaging targets appear extremely vividly to the viewer and theviewer can perceive the image that has a sense of depth.

2-4. Detection Area Setting Processing Procedure

Next, detection area setting processing procedures RT3 and RT4, whichare used in the compound-eye imaging device 71 when respectively settingthe right side and left side detection areas DA1 and DB1, will beexplained with reference to flowcharts shown in FIG. 10 and FIG. 11. Itshould be noted that either the right side detection area settingprocessing procedure RT3 or the left side detection area settingprocessing procedure RT4 may be processed first, or parallel processingmay be performed.

When the imaging processing is started, the CPU 11 of the systemcontroller 75 starts the right side detection area setting processingprocedure RT3 (FIG. 10) and moves to step SP41. Note that processing atstep SP41 to step SP46 is the same as the processing at step SP1 to stepSP6 and an explanation is therefore omitted here.

At step SP47 to step SP50, the CPU 11 performs processing that replacesthe detection area DA2 of step SP7 to step SP10 with the detection areaDA1.

Specifically, at step SP47, using the detection area control portion84A, the CPU 11 calculates, using the following Formula (5), coordinates(DA1Lx, DA1Ly) expressing the upper left vertex of the detection areaDA1, based on the upper left vertex (TA1Lx, TA1Ly) of the set extractionarea TA1 and on the constant (Cx, Cy), and then moves to the next stepSP48.

DA1Lx=TA1Lx+Cx

DA1Ly=TA1Ly+Cy   (5)

At step SP48, the CPU 11 calculates coordinates (DA1Rx, DA1Ry)expressing the lower right vertex in accordance with a specificarithmetic expression that is based on the coordinates (DA1Lx, DA1Ly)expressing the upper left vertex of the detection area DA1, and thenmoves to the next step SP49.

At step SP49, the CPU 11 sets the detection area DA1 with thecoordinates (DA1Lx, DA1Ly) and the coordinates (DA1Rx, DA1Ry) as theupper left vertex and the lower right vertex, respectively, and moves tothe next step SP50.

At step SP50, the CPU 11 generates detection area information SDA thatrepresents the set detection area DA1, and supplies the detection areainformation SDA to the detection portion 52A. The CPU 11 then moves tothe next step SP51, and ends the right side detection area settingprocessing procedure RT3.

Further, when the imaging processing is started, the CPU 11 of thesystem controller 75 starts the left side detection area settingprocessing procedure RT4 (FIG. 11) and moves to step SP61. Note thatprocessing at step SP61 to step SP66 is the same as the processing atstep SP21 to step SP26 and an explanation is therefore omitted here.

At step SP67 to step SP70, the CPU 11 performs processing that replacesthe detection area DB2 of step SP27 to step SP30 with the detection areaDB 1. In other words, the CPU 11 performs processing that replaces thedetection area DA1 of step SP47 to step SP50 with the detection areaDB1.

Specifically, at step SP67, using the detection area control portion84B, the CPU 11 calculates, using the following Formula (6), coordinates(DB1Lx, DB1Ly) expressing the upper left vertex of the detection areaDB1, based on the upper left vertex (TB1Lx, TB1Ly) of the extractionarea TB1 and on the constant (Cx, Cy), and then moves to the next stepSP68.

DB1Lx=TB1Lx+Cx

DB1Ly=TB1Ly+Cy   (6)

At step SP68 and step SP69, similarly to the case of the right side, theCPU 11 sets the detection area DB 1 after calculating coordinates(DB1Rx, DB1Ry) expressing the lower right vertex, and then moves to thenext step SP70.

At step SP70, the CPU 11 generates detection area information SDB thatrepresents the set detection area DB1, and supplies the detection areainformation SDB to the detection portion 52B. The CPU 11 then moves tothe next step SP71, and ends the left side detection area settingprocessing procedure RT4.

2-5. Operations and Effects

With the above-described configuration, the compound-eye imaging device71 according to the second embodiment respectively sets the extractionareas TA1 and TB 1 in the image signals V3A and V3B using the opticalaxis correction control portions 41A and 41B and by the optical axiscorrection processing in accordance with the zoom ratio at this time.

The parallax amount control portion 42 respectively sets the extractionareas TA2 and TB2 such that the extraction areas TA1 and TB1 aredisplaced in the left-right direction by the parallax amount adjustmentprocessing in accordance with the stereoscopic effect that is wished tobe imparted to the viewer.

The detection area control portions 84A and 84B respectively set thedetection areas DA1 and DB1 such that the detection areas DA1 and DB1are positioned substantially in the center of the extraction areas TA1and TA2 which are obtained by the optical axis correction processingonly, rather than the extraction areas TA2 and TB2 which are obtained bythe parallax amount adjustment processing.

Then, after the detection portions 52A and 52B have generated thevarious detection values, such as sharpness etc., based on the pixelvalues inside the detection areas DA1 and DB1, the digital signalprocessing portions 27A and 27B perform the image adjustment processing,such as focus control, exposure control and the like.

As a result, the compound-eye imaging device 71 can position the imagingtargets JA and JB in mutually corresponding positions in the imagesignals V4A and V4B, and can also optimize the focus and exposure for alocation at which the imaging targets JA and JB are mutually aligned.Thus, the stereoscopic image of the imaging targets can be extremelyvividly captured.

At this time, in the compound-eye imaging device 71, the detection areasDA1 and DB1 are respectively set in substantially the center of theextraction areas TA1 and TB1, namely in locations that are displacedfrom the center of the extraction areas TA2 and TB2 which are the areasthat are actually extracted from the images.

For that reason, with the image signals V4A and V4B generated accordingto the second embodiment, at a stage of display on the display screen,the respective positions of the detection areas DA1 and DB1 are mutuallydisplaced. However, when stereoscopic viewing takes place, the detectionareas DA1 and DB1 can be aligned with the image of the imaging targets.

In particular, even when there is a large parallax amount and there is asignificant amount of separation between the imaging target JA for theright eye and the imaging target JB for the left eye, when stereoscopicviewing takes place, the detection areas DA1 and DB1 can be overlappedat a position of the image of the imaging targets. As a result, theviewer who is stereoscopically viewing the image signals V4A and V4B canperceive the extremely vivid image with a sufficient sense of depth.

Further, in other points, the compound-eye imaging device 71 can achievesimilar operational effects as the first embodiment.

With the above-described configuration, the compound-eye imaging device71 respectively sets the extraction areas TA1 and TB1 in the imagesignals V3A and V3B by the optical axis correction processing inaccordance with the zoom ratio, and further respectively sets theextraction areas TA2 and TB2 by the parallax amount adjustmentprocessing in accordance with the stereoscopic effect that is wished tobe imparted to the viewer. Then, the compound-eye imaging device 1respectively sets the detection areas DA1 and DB1 in positions that aresubstantially in the center of the previously set extraction areas TA1and TB1, and, after the various detection values have been generatedbased on the pixel values within the detection areas DA1 and DB1,performs the image adjustment processing, such as focus control,exposure control and the like. As a result, the compound-eye imagingdevice 71 can position the imaging targets JA and JB in mutuallydisplaced positions in the image signals V4A and V4B, and can optimallyperform focus and exposure respectively for a location in which theimaging targets JA and JB are mutually aligned. The compound-eye imagingdevice 71 can thus capture an exceptionally vivid stereoscopic image.

3. Other embodiments

Note that, in the above-described embodiments, cases are described inwhich the detection values are generated from the pixel values of thepixels included in the detection areas and imaging light is opticallychanged as the image adjustment processing. Specifically, processing toadjust the focus position of the image and the exposure etc. isperformed. However, the present disclosure is not limited to thisexample and any one of these adjustment processing may be performed, or,with respect to the image expressed by the image signal after imagecapture, adjustment processing that matches the image quality to theimaging target based on the detection values obtained from the pixelvalues of the pixels within the detection areas may be performed, suchas contrast, gamma characteristics and color adjustment, for example.

Further, in the above-described embodiments, cases are described inwhich the extraction areas and the detection areas are set with respectto the image signals V3A and V3B that are captured by the imaging units3A and 3B. However, the present disclosure is not limited to thisexample and image signals captured by another imaging device may beacquired and the extraction areas and detection areas may be set withrespect to those image signals. In this case, a variety of imageadjustment processing, such as white balance and contrast etc. can beperformed on the image signals at a stage after the image signals aregenerated by an imaging element.

Further, in the above-described embodiments, cases are described inwhich the coordinates of the detection areas are calculated byarithmetic operation from the coordinates of the set extraction areas.However, the present disclosure is not limited to this example, and thedetection areas may be set by a variety of methods. For example, theextraction areas may be divided up inside into a plurality of areas in agrid formation, and one or two or more of the areas may be set as thedetection areas in accordance with the set extraction areas.

Further, in the above-described embodiments, cases are described inwhich the detection areas are set substantially in the center of the setextraction areas. However, the present disclosure is not limited to thisexample, and, in a case in which the imaging target is recognized to bepart of a face by specific face recognition processing, for example, thedetection areas may be set to be positioned on the eyes of the face, orthe detection areas may be set on a chosen location with respect to theimaging target.

Furthermore, in the above-described embodiments, cases are described inwhich the optical axis correction table is stored in advance, theoptical axis correction amount is determined in accordance with the setzoom ratio and the extraction areas TA1 and TB1 are set. However, thepresent disclosure is not limited to this example, and, using a specificimaging target specification portion, for example, mutuallycorresponding imaging targets may be respectively specified from theimages expressed by the image signals V3A and V3B, and areas taking theposition of the imaging targets as a reference may be set as theextraction areas TA1 and TB1, respectively. In addition, the extractionareas TA1 and TB1 may be set by performing image stabilizationprocessing using a specific image stabilization processing portion, forexample. In this way, the extraction areas TA1 and TB1 can be set usinga variety of methods.

Further, in the above-described embodiments, cases are described inwhich the image signals V3A and V3B, which express the whole of theareas captured by the imaging elements 24A and 24B, are generated, andthe image signals V4A and V4B are generated by extracting part of eachof the whole areas using the extraction/scaling portions 55A and 55B, inaccordance with the extraction area signals STA2 and STB2. However, thepresent disclosure is not limited to this example and by supplying theextraction area signals STA2 and STB2 to the imaging elements 24A and24B, for example, part of the captured images may be extracted and theimage signals V3A and V3B corresponding to the extraction areas TA2 andTB2 may be generated.

Further, in the above-described embodiments, cases are described inwhich the control unit 2 and the imaging units 3A and 3B have anintegrated structure as the compound-eye imaging devices 1 and 71.However, the present disclosure is not limited to this example, and anindependent control unit 2 may, for example, acquire image signals fromtwo external imaging units and, at the same time, may supply variouscontrol signals to the external imaging units.

Further, in the above-described embodiments, cases are described inwhich the image signals V4A and V4B of the two systems are generatedusing the two imaging units 3A and 3B. However, the present disclosureis not limited to this example, and may be applied to a case in which,when capturing a hologram image, for example, a chosen number of two ormore of the imaging units 3, such as three or eight of the imaging units3, are used to concurrently generate the image signals of the sameimaging target.

Further, in the above-described embodiments, cases are described inwhich the system controller 5 executes a specific imaging processingprogram and thus realizes the various functions shown in FIG. 3.However, the present disclosure is not limited to this example and thevarious functions may be realized by hardware.

Further, in the above-described embodiments, cases are described inwhich the digital signal processing portions 27A and 27B, which areformed by digital signal processors, are programmed in advance and thusrealize the various functions shown in FIG. 3. However, the presentdisclosure is not limited to this example, and the various functions maybe realized by hardware.

Further, in the above-described embodiments, cases are described inwhich the multiple image adjustment control program is stored in thenon-volatile memory 14 in advance, and the extraction areas and thedetection areas are set and the image signals are adjusted by readingout and executing this program. However, the present disclosure is notlimited to this example, and a multiple image adjustment control programmay be acquired from an external server or a host device etc. via a USB(Universal Serial Bus) connection or a LAN (Local Area Network)connection, and executed.

Further, in the above-described second embodiment, a case is describedin which the compound-eye imaging device 71 is configured as the imageprocessing device by the optical axis correction control portions 41Aand 41B as a first area setting portion, the parallax amount controlportion 42 as a second area setting portion, and the detection areacontrol portions 84A and 84B as a detection area setting portion.However, the present disclosure is not limited to this example, and theimage processing device may be configured by the first area settingportion, the second area setting portion and the detection area settingportion that are configured in various other ways. It should beunderstood by those skilled in the art that various modifications,combinations, sub-combinations and alterations may occur depending ondesign requirements and other factors insofar as they are within thescope of the appended claims or the equivalents thereof.

It should be noted that the present disclosure can also take thefollowing configurations.

(1) An image processing device comprising:

a first area setting portion that sets a first area for each of imagesof two systems that are respectively captured from two differentviewpoints;

a second area setting portion that, for each of the images of the twosystems, sets a second area based on the first area, the second areabeing used to adjust a stereoscopic effect that is imparted duringstereoscopic viewing; and

a detection area setting portion that, for each of the images of the twosystems, sets a detection area based on the first area, the detectionarea being an area used to extract an image signal.

(2) The image processing device according to (1),

wherein the first area setting portion respectively sets the first areawhile taking as reference a position of an imaging target in the imagesof the two systems.

(3) The image processing device according to (2), further comprising:

an output image generation portion that generates an output image inaccordance with an image signal obtained from the second area.

(4) The image processing device according to (3),

wherein the output image generation portion adjusts the image signalobtained from the second area, in accordance with an image signalobtained from the detection area, and generates the output image.

(5) The image processing device according to (2), further comprising:

an optical system control portion that changes a state of an opticalsystem of an imaging portion in accordance with an image signal obtainedfrom the detection area.

(6) An image processing method comprising:

setting a first area for each of images of two systems that arerespectively captured from two different viewpoints, the first areabeing set by a first area setting portion;

setting a second area based on the first area for each of the images ofthe two systems, the second area being used to adjust a stereoscopiceffect that is imparted during stereoscopic viewing and being set by asecond area setting portion; and

setting a detection area based on the first area for each of the imagesof the two systems, the detection area being an area used to extract animage signal that expresses the second area and being set by a detectionarea setting portion.

(7) An image processing program that causes an information processingdevice to execute: setting a first area for each of images of twosystems that are respectively captured from two different viewpoints;

setting a second area based on the first area for each of the images ofthe two systems, the second area being used to adjust a stereoscopiceffect that is imparted during stereoscopic viewing; and

setting a detection area based on the first area for each of the imagesof the two systems, the detection area being an area used to extract animage signal that expresses the second area.

INDUSTRIAL APPLICABILITY

The present disclosure can be used in various business-use orhousehold-use video cameras that perform compound-eye imaging, indigital still cameras or mobile telephones that have a moving imagecapture function, or in computer devices and the like.

REFERENCE SIGNS LIST

1, 71 Compound-eye imaging device

2 Control unit

3A, 3B Imaging unit

5, 75 System controller

11 CPU

20A, 20B Optical adjustment portion

21A, 21B Zoom lens

22A, 22B Aperture

23A, 23B Focus lens

24A, 24B Imaging element

25A, 25B Analog signal processing portion

27A, 27B Digital signal processing portion

31A, 31B Lens driver

32A, 32B Timing generator

40, 80 Extraction/scaling control portion

41A, 41B Optical axis correction control portion

42 Parallax amount control portion

43 Extraction area signal generation portion

44A, 44B, 84A, 84B Detection area control portion

45 Lens control portion

46 Exposure control portion

47 White balance control portion

52A, 52B Detection portion

52A1, 52B1 Sharpness detection portion

52A2, 52B2 Luminance detection portion

52A3, 52B3 Color signal detection portion

53A, 53B White balance adjustment portion

55A, 55B Extraction/scaling portion

V3A, V3B, V4A, V4B Image signal

JA, JB Imaging target

TA1, TA2, TB1, TB2 Extraction area

DA1, DA2, DB1, DB2 Detection area

1. An image processing device comprising: a detection area settingdevice that sets a first detection area within a first imaging area andsets a second detection area in a second imaging area after adisplacement adjustment is applied to at least one of the first imagingarea and the second imaging area, wherein the first detection area beingan area used in image adjustment processing.
 2. The image processingdevice of claim 1, further comprising: a displacement adjustmentmechanism that compensates for optical misalignment between a firstimaging unit and a second imaging unit.
 3. The imaging processing deviceof claim 1, further comprising: a zoom lens; and a lens control portion,wherein said displacement adjustment mechanism compensates for opticalmisalignment caused by zoom adjustment of the zoom lens.
 4. The imagingprocessing device of claim 2, further comprising a storage device,wherein adjustment amounts used by the displacement adjustment mechanismto adjust for misalignment are predetermined and stored in the storagedevice.
 5. The imaging processing device of claim 4, wherein theadjustment amounts are optical axis correction amounts, and the storagedevice stores the optical axis correction amounts in an optical axiscorrection table.
 6. The imaging processing device of claim 2, furthercomprising: the first imaging unit and the second imagining unit,wherein the first imaging unit, the second imagining unit, and thedetection area setting device are part of a compound eye imaging device.7. The imaging processing device of claim 1, wherein, the imageadjustment processing being one of focus control, exposure control andwhite balance control.
 8. The imaging processing device of claim 1,wherein, the first detection area is positioned in a center of the firstimaging area, and the second detection area is positioned in a center ofthe second imaging area.
 9. The imaging processing device of claim 1,wherein: the detection area setting device sets a third imaging area anda forth imaging area, the third imaging area being an area created bymoving the first imaging area in a horizontal direction, and a fourthimaging area being an area created by moving the second imaging area inan opposite horizontal direction, an amount of movement for the firstimaging area and the second imaging area corresponding to a stereoscopiceffect.
 10. An image processing method comprising: applying adisplacement adjustment to at least one of a first imaging area and asecond imaging area; and setting with a detection area setting device afirst detection area within the first imaging area, and a seconddetection area in the second imaging area, wherein the first detectionarea being an area used in image adjustment processing.
 11. The methodof claim 10, further comprising: compensating for optical misalignmentbetween a first imaging unit and a second imaging unit with adisplacement adjustment mechanism.
 12. The method of claim 10, furthercomprising: adjusting a zoom on a zoom lens, wherein the compensatingincludes compensating for optical misalignment caused by the adjustingof the zoom.
 13. The method of claim 11, further comprising: storing ina storage device adjustment amounts used by the displacement adjustmentmechanism to adjust for misalignment between the first imaging unit andthe second imagining unit.
 14. The method of claim 13, wherein theadjustment amounts are optical axis correction amounts, and the storagedevice stores the optical axis correction amounts in an optical axiscorrection table.
 15. The method of claim 10, wherein the imageadjustment processing being one of focus control, exposure control andwhite balance control.
 16. The method of claim 10, wherein, the firstdetection area as positioned in a center of the first imaging area, andthe second detection area is positioned in a center of the secondimaging area.
 17. The method of claim 10, wherein: the setting includessetting a third imaging area and a forth imaging area, the third imagingarea being an area created by moving the first imaging area in ahorizontal direction, and a fourth imaging area being an area created bymoving the second imaging area in an opposite horizontal direction, anamount of movement for the first imaging area and the second imagingarea corresponding to a stereoscopic effect.
 18. A non-transitorycomputer readable storage device having instructions stored thereon thatwhen executed by a processing circuit implement an image processingmethod, the method comprising: applying a displacement adjustment to atleast one of a first imaging area and a second imaging area; and settingwith a detection area setting device a first detection area within thefirst imaging area, and a second detection area in the second imagingarea, wherein the first detection area being an area used in imageadjustment processing.
 19. The storage device of claim 18, wherein themethod further comprising: compensating for optical misalignment betweena first imaging unit and a second imaging unit with a displacementadjustment mechanism.
 20. The storage device of claim 18, wherein themethod further comprising: adjusting a zoom on a zoom lens, wherein thecompensating includes compensating for optical misalignment caused bythe adjusting of the zoom.